<template>
	<view class="u-content">
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:0,
				content: '',
			}
		},
		onPullDownRefresh() {
			this.getDetail()
		},
		onLoad(e) {
			this.id = e.id;
			this.getDetail()
		},
		methods:{
			getDetail(){
				uni.$ice.post('index/detail', {id:this.id}, false).then(res => {
					this.content = res.data.content
					uni.setNavigationBarTitle({
						title:res.data.title
					})
					uni.stopPullDownRefresh()
							
				}).catch(err => {
							
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
    .u-content {
        padding: 24rpx 0;
    }
</style>
